<script type="text/javascript" >
    stYoutubeToolbox.load_tooltip();
    stYoutubeToolbox.on_submitform('#youtubeSettingForm', function(data){
        var message = data.split('|*|');
        message = message[1];
        stYoutubeToolbox.loadPage('youtubeSetting', '', message);
    });
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
        <form class="stform" id="youtubeSettingForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >
            <ul>
                <li>
                    <label><?php _e('Username for YouTube', $config['plugin_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $result->user_name ?>" class="required" name="data[user_name]" id="user_name" type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('Password', $config['plugin_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $result->user_password ?>" class="required" name="data[user_password]" id="user_password" type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('YouTube channel ', $config['plugin_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $result->user_channel ?>" class="required" name="data[user_channel]" id="user_channel" type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                <li><input type="submit" value="Submit"/></li>
            </ul>
            <input type="hidden" value="<?php echo $result->id ?>" id="id" name="data[id]"/>
            <input type="hidden" value="<?php echo $user_id?>" id="user_id" name="data[user_id]"/>

        </form>
    </div>
</div>

